package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.vo.EmployeeOV;

/**
 * The interface Employee service.
 */
public interface EmployeeService {

    /**
     * 员工登录
     *
     * @param employeeLoginDTO the employee login dto
     * @return employee employee
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);


    /**
     * 员工分页查询
     *
     * @param epqDTO the epq dto
     * @return the page result
     */
    PageResult pageList(EmployeePageQueryDTO epqDTO);


    /**
     * 创建员工
     *
     * @param employeeDTO the employee dto
     */
    void create(EmployeeDTO employeeDTO);


    /**
     * 更新员工状态
     *
     * @param status the status
     * @param id     the id
     */
    void updateStatus(Integer status, Long id);


    /**
     * 根据id查询回显
     *
     * @param id the id
     * @return the employee ov
     */
    EmployeeOV findEmpById(Long id);

    /**
     * 根据id对员工信息进行修改
     *
     * @param employeeDTO the employee dto
     */
    void updateById(EmployeeDTO employeeDTO);


    /**
     *  修改密码
     *
     * @param passwordEditDTO the password edit dto
     */
    void editPassword(PasswordEditDTO passwordEditDTO);
}
